import Vue from 'vue'
import store from '@/store'
Vue.mixin({
   methods: {
      hasAuth(perm) {
         var authority = store.getters.permList
        //  console.log("authority-----===>",authority)
         return authority.indexOf(perm) > -1
      }
   }
})